//
//  FontManager.m
//  KingSelected
//
//  Created by 杨鹏 on 2023/10/27.
//

#import "FontManager.h"

@implementation FontManager

+ (UIFont *)fontWithName:(NSString *)name size:(CGFloat)size {
    return [UIFont fontWithName:name size:size] ?: [UIFont systemFontOfSize:size];
}
+ (UIFont *)fontBoldWithSize:(CGFloat)size {
    return [FontManager fontWithName:@"SanFranciscoDisplay-Bold" size:size];
}
+ (UIFont *)fontSemiboldWithSize:(CGFloat)size {
    return [FontManager fontWithName:@"SanFranciscoDisplay-Semibold" size:size];
}
+ (UIFont *)fontNormalWithSize:(CGFloat)size {
    return [FontManager fontWithName:@"SanFranciscoDisplay-Regular" size:size];
}
+ (UIFont *)fontMediumWithSize:(CGFloat)size {
    return [FontManager fontWithName:@"SanFranciscoDisplay-Medium" size:size];
}
+ (UIFont *)fontGeetypeWithSize:(CGFloat)size {
    return [FontManager fontWithName:@"GEETYPE-KanteiryuGBT-Flash" size:size];
    
}

@end
